import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import * as VueJsonp from "vue-jsonp";
import {
  Button,
  Tabbar,
  TabbarItem,
  Icon,
  Search,
  Checkbox,
  Cell,
  CheckboxGroup,
  Grid,
  GridItem,
  NavBar,
  Image as VanImage,
  Tab,
  Tabs,
  CellGroup,
  Sidebar,
  SidebarItem,
  Swipe,
  Sticky,
  SwipeItem,
  List,
  PullRefresh,
  ActionBar,
  ActionBarIcon,
  ActionBarButton,
  PasswordInput,
  NumberKeyboard,
  CountDown,
  Form,
  Field,
  ShareSheet,
  Switch,
} from "vant";
//引入重置CSS文件
import "./assets/css/reset.less";
//引入移动端适配文件
import "amfe-flexible";

createApp(App)
  .use(store)
  .use(router)
  .use(VueJsonp)
  .use(Button)
  .use(Tabbar)
  .use(Sticky)
  .use(Field)
  .use(Form)
  .use(CheckboxGroup)
  .use(Checkbox)
  .use(Cell)
  .use(CellGroup)
  .use(TabbarItem)
  .use(Icon)
  .use(Search)
  .use(Grid)
  .use(GridItem)
  .use(NavBar)
  .use(VanImage)
  .use(Tab)
  .use(Tabs)
  .use(Sidebar)
  .use(SidebarItem)
  .use(Swipe)
  .use(SwipeItem)
  .use(List)
  .use(PullRefresh)
  .use(ActionBar)
  .use(ActionBarIcon)
  .use(ActionBarButton)
  .use(PasswordInput)
  .use(NumberKeyboard)
  .use(CountDown)
  .use(ShareSheet)
  .use(Switch)
  .mount("#app");
